<template>
    <h1>Cnode</h1>
    <ul>
        <li v-for="item in list">
            {{ item.title }}
        </li>
    </ul>
</template>
<script setup>
    import { ref, onMounted } from 'vue'
    import { getTopics } from '@/api/topics'

    const list = ref([]);
    onMounted(()=>{
        getTopics()
            .then(res=>{
                console.log(res)
                list.value = res.data
            })
    })
</script>
<style></style>